import { Injectable } from '@nestjs/common';
import { RedisService } from './common/service/redis.service';

@Injectable()
export class AppService {
  constructor(
    private readonly redis: RedisService
  ) {}

  async getHello() {
    await this.redis.set('first_step', 'hello world!')
    const redisData = await this.redis.get('first_step');
    return {msg:redisData}
  }
}
